package com.espirit.hr;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import com.espirit.eap.annotation.DomainModel;
import com.espirit.eap.sa.Employee;
import com.espirit.finance.core.Voucher;

@Entity
@DomainModel
public class EmployeeSalary extends Voucher{
	private static final long serialVersionUID = -725217932117228763L;
	private Integer id;
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@ManyToOne
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	private Employee employee;
}
